[QEMU] Fix up ioemu timer save/restore after version changes.
authorTim Deegan <Tim.Deegan@xensource.com>
Mon, 11 Jun 2007 13:56:50 +0000 (14:56 +0100)
committerTim Deegan <Tim.Deegan@xensource.com>
Mon, 11 Jun 2007 13:56:50 +0000 (14:56 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/ioemu/vl.c

index 5458684f3e59080a2546ebb88bcada009fbfa452..696791f13c6608298ce395c8cfc76eac1641914f 100644 (file)
@@ -935,7 +935,7 @@ static void timer_save(QEMUFile *f, void *opaque)
 
 static int timer_load(QEMUFile *f, void *opaque, int version_id)
 {
-    if (version_id != 1)
+    if (version_id != 1 && version_id != 2)
         return -EINVAL;
     if (cpu_ticks_enabled) {
         return -EINVAL;